#!/usr/bin/env python3
# DATA: 2024/10/6
# author: 曹文耀
#

import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from src.route.api import sroute

app = FastAPI(title="流程服务")
app.include_router(sroute)
app.add_middleware(CORSMiddleware, allow_origins=["*"],
                   allow_credentials=False,
                   allow_methods=["*"],
                   allow_headers=["*"])

if __name__ == '__main__':
    uvicorn.run(app="main:app", host="0.0.0.0", port=9610, reload=True)
